<template>
  <el-container style="height:100%; background:#000000;" direction="horizontal">
    <el-aside width="asideWidth" style="height: 100%">
      <el-menu
        :default-active="$route.path"
        class="el-menu-vertical-demo"
        mode="vertical"
        @open="handleOpen"
        @close="handleClose"
        router
        :collapse="!collaposed"
        style="height: 100%"
        background-color="#545c64"
        text-color="#FFF"
        active-text-color="#ffd04b"
        theme="dark"
      >
        <el-submenu index="1">
          <template slot="title">
            <i class="el-icon-location"></i>
            <span>导航一</span>
          </template>
          <el-menu-item-group>
            <template slot="title">分组一</template>
            <el-menu-item index="/About">选项1</el-menu-item>
            <el-menu-item index="/About2">选项2</el-menu-item>
          </el-menu-item-group>
          <el-menu-item-group title="分组2">
            <el-menu-item index="/About3">选项3</el-menu-item>
          </el-menu-item-group>
          <el-submenu index="1-2">
            <template slot="title">选项4</template>
            <el-menu-item index="/About5">选项1</el-menu-item>
          </el-submenu>
        </el-submenu>
        <el-menu-item index="/About6">
          <i class="el-icon-menu"></i>
          <span slot="title">导航二</span>
        </el-menu-item>
        <el-menu-item index="/About7">
          <i class="el-icon-setting"></i>
          <span slot="title">导航三</span>
        </el-menu-item>
      </el-menu>
    </el-aside>
    <el-container style="margin-left: 0px">
      <el-header style="background-color: coral">
        <!--        设置字体font-size大小，可以改变图标大小及整个按钮大小-->
        <el-button
          :icon="collaposed ? 'el-icon-s-fold' : 'el-icon-s-unfold'"
          style="font-size: 30px;background:transparent;border: none;padding-left: 0px;margin-left: -20px"
          v-on:click="clickColl()"
        >
        </el-button>
      </el-header>
      <el-main style>
        <router-view></router-view>
      </el-main>
      <el-footer>Footer</el-footer>
    </el-container>
  </el-container>
</template>

<script>
import ElementUI from "element-ui";
import "element-ui/lib/theme-chalk/index.css";
import Vue from "vue";
Vue.use(ElementUI, { size: "small", zIndex: 3000 });

export default {
  name: "LBXNavMenu",
  props:{

  }
};
</script>

<style scoped></style>
